<?php

/* 
 *
 */

require_once 'db_conn.php';
$id =  isset( $_GET['id']) ? $_GET['id']:0;

$sql = "
    delete from `t_message` 
    where id='$id'
 ";

$result = $conn->query($sql);
if($result===false){
    echo "数据库操作失败";   
}else{
    header("Location:index.php");
}
       
       